   1              		.syntax unified
   2              		.cpu cortex-m3
   3              		.fpu softvfp
   4              		.eabi_attribute 20, 1
   5              		.eabi_attribute 21, 1
   6              		.eabi_attribute 23, 3
   7              		.eabi_attribute 24, 1
   8              		.eabi_attribute 25, 1
   9              		.eabi_attribute 26, 1
  10              		.eabi_attribute 30, 4
  11              		.eabi_attribute 34, 1
  12              		.eabi_attribute 18, 4
  13              		.thumb
  14              		.syntax unified
  15              		.file	"led_error.c"
  16              		.text
  17              	.Ltext0:
  18              		.cfi_sections	.debug_frame
  19              		.section	.text.ledError_Init,"ax",%progbits
  20              		.align	1
  21              		.global	ledError_Init
  22              		.thumb
  23              		.thumb_func
  25              	ledError_Init:
  26              	.LFB2:
  27              		.file 1 "uc_libc_dev/misc/led_error.c"
   1:uc_libc_dev/misc/led_error.c **** #include "led_error.h"
   2:uc_libc_dev/misc/led_error.c **** #ifndef ledERROR_DIR
   3:uc_libc_dev/misc/led_error.c **** #include "_config_cpu_device.h"
   4:uc_libc_dev/misc/led_error.c **** #endif
   5:uc_libc_dev/misc/led_error.c **** 
   6:uc_libc_dev/misc/led_error.c **** static void led_SetupPorts(void);
   7:uc_libc_dev/misc/led_error.c **** static void led_State(int st);
   8:uc_libc_dev/misc/led_error.c **** 
   9:uc_libc_dev/misc/led_error.c **** #if defined(CPU_ARM_LPC)
  10:uc_libc_dev/misc/led_error.c **** static void led_SetupPorts(void) {
  11:uc_libc_dev/misc/led_error.c **** 	ledERROR_DIR |= ledERROR;
  12:uc_libc_dev/misc/led_error.c **** 	ledERROR_OFF |= ledERROR;
  13:uc_libc_dev/misc/led_error.c **** }
  14:uc_libc_dev/misc/led_error.c **** 
  15:uc_libc_dev/misc/led_error.c **** static void led_State(int st) {
  16:uc_libc_dev/misc/led_error.c **** 	if (st == pdON) ledERROR_ON |= ledERROR; else ledERROR_OFF |= ledERROR;
  17:uc_libc_dev/misc/led_error.c **** }
  18:uc_libc_dev/misc/led_error.c **** #endif
  19:uc_libc_dev/misc/led_error.c **** 
  20:uc_libc_dev/misc/led_error.c **** void ledError_Init(void) {
  28              		.loc 1 20 0
  29              		.cfi_startproc
  30              		@ args = 0, pretend = 0, frame = 0
  31              		@ frame_needed = 0, uses_anonymous_args = 0
  32              		@ link register save eliminated.
  33              	.LBB6:
  34              	.LBB7:
  11:uc_libc_dev/misc/led_error.c **** 	ledERROR_OFF |= ledERROR;
  35              		.loc 1 11 0
  36 0000 044A     		ldr	r2, .L2
  37 0002 1368     		ldr	r3, [r2]
  38 0004 43F00053 		orr	r3, r3, #536870912
  39 0008 1360     		str	r3, [r2]
  12:uc_libc_dev/misc/led_error.c **** }
  40              		.loc 1 12 0
  41 000a D369     		ldr	r3, [r2, #28]
  42 000c 43F00053 		orr	r3, r3, #536870912
  43 0010 D361     		str	r3, [r2, #28]
  44 0012 7047     		bx	lr
  45              	.L3:
  46              		.align	2
  47              	.L2:
  48 0014 80C00920 		.word	537510016
  49              	.LBE7:
  50              	.LBE6:
  51              		.cfi_endproc
  52              	.LFE2:
  54              		.section	.text.ledError_Blink,"ax",%progbits
  55              		.align	1
  56              		.global	ledError_Blink
  57              		.thumb
  58              		.thumb_func
  60              	ledError_Blink:
  61              	.LFB3:
  21:uc_libc_dev/misc/led_error.c **** 	led_SetupPorts();
  22:uc_libc_dev/misc/led_error.c **** }
  23:uc_libc_dev/misc/led_error.c **** 
  24:uc_libc_dev/misc/led_error.c **** static volatile uint error = 0;
  25:uc_libc_dev/misc/led_error.c **** static uint ledBlink = pdFALSE;
  26:uc_libc_dev/misc/led_error.c **** 
  27:uc_libc_dev/misc/led_error.c **** // função que determina a quantidade de piscadas do erro, sinalizando o tipo do erro
  28:uc_libc_dev/misc/led_error.c **** void ledError_Blink(uint n_blink, uint st) {
  62              		.loc 1 28 0
  63              		.cfi_startproc
  64              		@ args = 0, pretend = 0, frame = 0
  65              		@ frame_needed = 0, uses_anonymous_args = 0
  66              		@ link register save eliminated.
  67              	.LVL0:
  29:uc_libc_dev/misc/led_error.c **** 	error = n_blink;
  68              		.loc 1 29 0
  69 0000 024B     		ldr	r3, .L5
  70 0002 1860     		str	r0, [r3]
  30:uc_libc_dev/misc/led_error.c **** 	ledBlink = st;
  71              		.loc 1 30 0
  72 0004 024B     		ldr	r3, .L5+4
  73 0006 1960     		str	r1, [r3]
  74 0008 7047     		bx	lr
  75              	.L6:
  76 000a 00BF     		.align	2
  77              	.L5:
  78 000c 00000000 		.word	.LANCHOR0
  79 0010 00000000 		.word	.LANCHOR1
  80              		.cfi_endproc
  81              	.LFE3:
  83              		.section	.text.ledError_Tick,"ax",%progbits
  84              		.align	1
  85              		.global	ledError_Tick
  86              		.thumb
  87              		.thumb_func
  89              	ledError_Tick:
  90              	.LFB4:
  31:uc_libc_dev/misc/led_error.c **** }
  32:uc_libc_dev/misc/led_error.c **** 
  33:uc_libc_dev/misc/led_error.c **** 
  34:uc_libc_dev/misc/led_error.c **** // função de sistema para ser chamado a cada 1ms
  35:uc_libc_dev/misc/led_error.c **** // o numero do erro representa a quantidade de vezes que led vai piscar. Se for valor 0 deixa o led
  36:uc_libc_dev/misc/led_error.c **** void ledError_Tick(void) {
  91              		.loc 1 36 0
  92              		.cfi_startproc
  93              		@ args = 0, pretend = 0, frame = 0
  94              		@ frame_needed = 0, uses_anonymous_args = 0
  37:uc_libc_dev/misc/led_error.c **** 	if (!ledBlink) return;
  95              		.loc 1 37 0
  96 0000 1B4B     		ldr	r3, .L26
  36:uc_libc_dev/misc/led_error.c **** 	if (!ledBlink) return;
  97              		.loc 1 36 0
  98 0002 70B5     		push	{r4, r5, r6, lr}
  99              	.LCFI0:
 100              		.cfi_def_cfa_offset 16
 101              		.cfi_offset 4, -16
 102              		.cfi_offset 5, -12
 103              		.cfi_offset 6, -8
 104              		.cfi_offset 14, -4
 105              		.loc 1 37 0
 106 0004 1B68     		ldr	r3, [r3]
 107 0006 002B     		cmp	r3, #0
 108 0008 31D0     		beq	.L7
  38:uc_libc_dev/misc/led_error.c **** 
  39:uc_libc_dev/misc/led_error.c **** 	static int count1 = 0;
  40:uc_libc_dev/misc/led_error.c **** 	static int count2 = 0;
  41:uc_libc_dev/misc/led_error.c **** 	static int ff = 0;
  42:uc_libc_dev/misc/led_error.c **** 	static int nTimes = 0;
  43:uc_libc_dev/misc/led_error.c **** 
  44:uc_libc_dev/misc/led_error.c **** 	if (count1==0) {
 109              		.loc 1 44 0
 110 000a 1A4A     		ldr	r2, .L26+4
 111 000c 1368     		ldr	r3, [r2]
 112 000e 002B     		cmp	r3, #0
 113 0010 2BD1     		bne	.L17
  45:uc_libc_dev/misc/led_error.c **** 		if (count2==0) { // Prepara o intervalo entre as piscadas do led
 114              		.loc 1 45 0
 115 0012 194B     		ldr	r3, .L26+8
 116 0014 194C     		ldr	r4, .L26+12
 117 0016 1968     		ldr	r1, [r3]
 118 0018 31B9     		cbnz	r1, .L11
  46:uc_libc_dev/misc/led_error.c **** 			count2 = 1000;
 119              		.loc 1 46 0
 120 001a 4FF47A71 		mov	r1, #1000
 121 001e 1960     		str	r1, [r3]
  47:uc_libc_dev/misc/led_error.c **** 			nTimes = 2*(error);
 122              		.loc 1 47 0
 123 0020 1749     		ldr	r1, .L26+16
 124 0022 0968     		ldr	r1, [r1]
 125 0024 4900     		lsls	r1, r1, #1
 126 0026 2160     		str	r1, [r4]
 127              	.L11:
  48:uc_libc_dev/misc/led_error.c **** 		}
  49:uc_libc_dev/misc/led_error.c **** 
  50:uc_libc_dev/misc/led_error.c **** 		if (nTimes>0) { // Pisca o led por 250 ms vezes nTimes
 128              		.loc 1 50 0
 129 0028 2168     		ldr	r1, [r4]
 130 002a 0029     		cmp	r1, #0
 131 002c 11DD     		ble	.L12
  51:uc_libc_dev/misc/led_error.c **** 			if (ff)	led_State(pdOFF); else led_State(pdON);
 132              		.loc 1 51 0
 133 002e 154B     		ldr	r3, .L26+20
 134 0030 1868     		ldr	r0, [r3]
 135 0032 08B1     		cbz	r0, .L13
 136              	.LVL1:
 137              	.LBB16:
 138              	.LBB17:
  16:uc_libc_dev/misc/led_error.c **** }
 139              		.loc 1 16 0
 140 0034 144E     		ldr	r6, .L26+24
 141 0036 00E0     		b	.L24
 142              	.LVL2:
 143              	.L13:
 144              	.LBE17:
 145              	.LBE16:
 146              	.LBB18:
 147              	.LBB19:
 148              	.LBB20:
 149 0038 144E     		ldr	r6, .L26+28
 150              	.LVL3:
 151              	.L24:
 152 003a 3568     		ldr	r5, [r6]
 153              	.LBE20:
 154              	.LBE19:
 155              	.LBE18:
  52:uc_libc_dev/misc/led_error.c **** 			count1 = 250;
  53:uc_libc_dev/misc/led_error.c **** 			ff ^= 1;
 156              		.loc 1 53 0
 157 003c 80F00100 		eor	r0, r0, #1
 158              	.LBB23:
 159              	.LBB22:
 160              	.LBB21:
  16:uc_libc_dev/misc/led_error.c **** }
 161              		.loc 1 16 0
 162 0040 45F00055 		orr	r5, r5, #536870912
 163 0044 3560     		str	r5, [r6]
 164              	.LBE21:
 165              	.LBE22:
 166              	.LBE23:
  54:uc_libc_dev/misc/led_error.c **** 			nTimes--;
 167              		.loc 1 54 0
 168 0046 0139     		subs	r1, r1, #1
  52:uc_libc_dev/misc/led_error.c **** 			count1 = 250;
 169              		.loc 1 52 0
 170 0048 FA25     		movs	r5, #250
 171 004a 1560     		str	r5, [r2]
  53:uc_libc_dev/misc/led_error.c **** 			nTimes--;
 172              		.loc 1 53 0
 173 004c 1860     		str	r0, [r3]
 174              		.loc 1 54 0
 175 004e 2160     		str	r1, [r4]
 176 0050 09E0     		b	.L15
 177              	.L12:
 178              	.LVL4:
 179              	.LBB24:
 180              	.LBB25:
  16:uc_libc_dev/misc/led_error.c **** }
 181              		.loc 1 16 0
 182 0052 0D48     		ldr	r0, .L26+24
 183              	.LBE25:
 184              	.LBE24:
  55:uc_libc_dev/misc/led_error.c **** 		} else { // Mantém o led apagado por 1 segundo
  56:uc_libc_dev/misc/led_error.c **** 			led_State(pdOFF);
  57:uc_libc_dev/misc/led_error.c **** 			if (count2) count2--;
 185              		.loc 1 57 0
 186 0054 1B68     		ldr	r3, [r3]
 187              	.LBB27:
 188              	.LBB26:
  16:uc_libc_dev/misc/led_error.c **** }
 189              		.loc 1 16 0
 190 0056 0168     		ldr	r1, [r0]
 191 0058 41F00051 		orr	r1, r1, #536870912
 192 005c 0160     		str	r1, [r0]
 193              	.LVL5:
 194              	.LBE26:
 195              	.LBE27:
 196              		.loc 1 57 0
 197 005e 33B1     		cbz	r3, .L7
 198              		.loc 1 57 0 is_stmt 0 discriminator 1
 199 0060 0549     		ldr	r1, .L26+8
 200 0062 013B     		subs	r3, r3, #1
 201 0064 0B60     		str	r3, [r1]
 202              	.L15:
  58:uc_libc_dev/misc/led_error.c **** 		}
  59:uc_libc_dev/misc/led_error.c **** 	}
  60:uc_libc_dev/misc/led_error.c **** 
  61:uc_libc_dev/misc/led_error.c **** 	if (count1) count1--;
 203              		.loc 1 61 0 is_stmt 1
 204 0066 1368     		ldr	r3, [r2]
 205 0068 0BB1     		cbz	r3, .L7
 206              	.L17:
 207              		.loc 1 61 0 is_stmt 0 discriminator 1
 208 006a 013B     		subs	r3, r3, #1
 209 006c 1360     		str	r3, [r2]
 210              	.L7:
 211 006e 70BD     		pop	{r4, r5, r6, pc}
 212              	.L27:
 213              		.align	2
 214              	.L26:
 215 0070 00000000 		.word	.LANCHOR1
 216 0074 00000000 		.word	.LANCHOR2
 217 0078 00000000 		.word	.LANCHOR3
 218 007c 00000000 		.word	.LANCHOR4
 219 0080 00000000 		.word	.LANCHOR0
 220 0084 00000000 		.word	.LANCHOR5
 221 0088 9CC00920 		.word	537510044
 222 008c 98C00920 		.word	537510040
 223              		.cfi_endproc
 224              	.LFE4:
 226              		.section	.bss.count1.4249,"aw",%nobits
 227              		.align	2
 228              		.set	.LANCHOR2,. + 0
 231              	count1.4249:
 232 0000 00000000 		.space	4
 233              		.section	.bss.error,"aw",%nobits
 234              		.align	2
 235              		.set	.LANCHOR0,. + 0
 238              	error:
 239 0000 00000000 		.space	4
 240              		.section	.bss.ledBlink,"aw",%nobits
 241              		.align	2
 242              		.set	.LANCHOR1,. + 0
 245              	ledBlink:
 246 0000 00000000 		.space	4
 247              		.section	.bss.ff.4251,"aw",%nobits
 248              		.align	2
 249              		.set	.LANCHOR5,. + 0
 252              	ff.4251:
 253 0000 00000000 		.space	4
 254              		.section	.bss.count2.4250,"aw",%nobits
 255              		.align	2
 256              		.set	.LANCHOR3,. + 0
 259              	count2.4250:
 260 0000 00000000 		.space	4
 261              		.section	.bss.nTimes.4252,"aw",%nobits
 262              		.align	2
 263              		.set	.LANCHOR4,. + 0
 266              	nTimes.4252:
 267 0000 00000000 		.space	4
 268              		.text
 269              	.Letext0:
 270              		.file 2 "uc_libc_dev/_libdef/uc_libdefs.h"
DEFINED SYMBOLS
                            *ABS*:00000000 led_error.c
D:\_temp\_windows\ccLxQq31.s:20     .text.ledError_Init:00000000 $t
D:\_temp\_windows\ccLxQq31.s:25     .text.ledError_Init:00000000 ledError_Init
D:\_temp\_windows\ccLxQq31.s:48     .text.ledError_Init:00000014 $d
D:\_temp\_windows\ccLxQq31.s:55     .text.ledError_Blink:00000000 $t
D:\_temp\_windows\ccLxQq31.s:60     .text.ledError_Blink:00000000 ledError_Blink
D:\_temp\_windows\ccLxQq31.s:78     .text.ledError_Blink:0000000c $d
D:\_temp\_windows\ccLxQq31.s:84     .text.ledError_Tick:00000000 $t
D:\_temp\_windows\ccLxQq31.s:89     .text.ledError_Tick:00000000 ledError_Tick
D:\_temp\_windows\ccLxQq31.s:215    .text.ledError_Tick:00000070 $d
D:\_temp\_windows\ccLxQq31.s:227    .bss.count1.4249:00000000 $d
D:\_temp\_windows\ccLxQq31.s:231    .bss.count1.4249:00000000 count1.4249
D:\_temp\_windows\ccLxQq31.s:234    .bss.error:00000000 $d
D:\_temp\_windows\ccLxQq31.s:238    .bss.error:00000000 error
D:\_temp\_windows\ccLxQq31.s:241    .bss.ledBlink:00000000 $d
D:\_temp\_windows\ccLxQq31.s:245    .bss.ledBlink:00000000 ledBlink
D:\_temp\_windows\ccLxQq31.s:248    .bss.ff.4251:00000000 $d
D:\_temp\_windows\ccLxQq31.s:252    .bss.ff.4251:00000000 ff.4251
D:\_temp\_windows\ccLxQq31.s:255    .bss.count2.4250:00000000 $d
D:\_temp\_windows\ccLxQq31.s:259    .bss.count2.4250:00000000 count2.4250
D:\_temp\_windows\ccLxQq31.s:262    .bss.nTimes.4252:00000000 $d
D:\_temp\_windows\ccLxQq31.s:266    .bss.nTimes.4252:00000000 nTimes.4252
                     .debug_frame:00000010 $d

NO UNDEFINED SYMBOLS
